<template>
  <div class="page-container" :class="{'mobile': simpleUtils.isMobile()}">
    <router-view/>
  </div>
</template>

<script>

export default {}
</script>

<style>
/*防止弹窗挡住图片预览*/
.ivu-image-preview-mask {
  z-index: 9999999 !important;
}

.ivu-image-preview-wrap {
  z-index: 9999999 !important;
}
</style>

<style lang="scss">

body {
  overflow-x: hidden;
}

.screen-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media screen and (min-width: 1900px) {
  .screen-container .screen-item {
    width: calc(16.666% - 10px + 1.666px) !important;
  }
}

@media screen and (min-width: 1500px) and (max-width: 1900px) {
  .screen-container .screen-item {
    width: calc(20% - 10px + 2px) !important;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1500px) {
  .screen-container .screen-item {
    width: calc(25% - 10px + 2.5px) !important;
  }
}

@media screen and (min-width: 700px) and (max-width: 1100px) {
  .screen-container .screen-item {
    width: calc(33.333% - 10px + 3px) !important;
  }
}

@media screen and (max-width: 700px) {
  .screen-container .screen-item {
    width: 100% !important;
  }
}

.link-style {
  cursor: pointer;
  transition: all .3s;

  &:hover {
    color: #1aa5ff;
    text-decoration: underline;
  }
}

// 超出省略
.over-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

::-webkit-scrollbar {
  background-color: #eaeaea;
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb {
  background-color: #9fa7ad;
  border-radius: 4px;

  &:hover {
    background-color: #0face0;
  }
}

.generate-container {
  margin-top: 140px;
}

a {
  text-decoration: none;
}

.tool-container {
  width: 90%;
  margin: 100px auto 0;
}

.fixed-height-box {
  overflow-y: visible;
}

.modal-container {
  width: 100%;
  margin: 0 !important;

  .ivu-card-head {
    display: none;
  }

  .generate-card {
    width: auto !important;
    margin-top: 0 !important;
  }

  .fixed-height-box {
    max-height: 800px;
    overflow-y: auto;
  }
}

.symbol-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.gauss-mask {
  backdrop-filter: blur(16px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.mobile {
  .tool-page {
    .ivu-page-header {
      padding: 16px 16px 16px 16px;
    }

    .ivu-page-header-row {
      display: flex;
      align-items: center;
    }

    .ivu-page-header-back .ivu-icon {
      position: relative;
      font-size: 26px !important;
    }

    .ivu-divider {
      display: none;
    }

    .ivu-page-header-title {
      font-size: 16px;
      margin-bottom: 0;
    }

    .generate-card {
      margin-top: 20px;
    }

    .ivu-card-head {
      display: none;
    }
  }

  .redirect-card {
    width: 90% !important;
  }

  .redirect {
    padding-top: 20% !important;
  }
}

@keyframes move-up {
  from {
    opacity: 0;
    transform: translateY(20%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

</style>
